package com.db.springcloud.mapper;

import com.db.springcloud.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface UserMapper {

    public boolean addUser(User user);

    public User queryById(int id);

    public List<User> queryAll();

}
